export default {
  namespaced: true,
  state: {
    selectedMenuId: '0' // 当前展示的菜单ID
  },
  mutations: {
    //存储当前展示的菜单
    setSelectedMenuId(state: { selectedMenuId: number }, selectedMenuId: number) {
      state.selectedMenuId = selectedMenuId
    }
  },
  getters: {
    //获取token方法
    getSelectedMenuId(state: { selectedMenuId: number }) {
      return state.selectedMenuId
    }
  }
}
